from Employees import Employee
list_employees = [
    Employee(1001, 9002, "师父", 60000),
    Employee(1002, 9001, "孙悟空", 50000),
    Employee(1003, 9002, "猪八戒", 20000),
    Employee(1004, 9001, "沙僧", 30000),
    Employee(1005, 9001, "小白龙", 15000),
]
maxv=list_employees[0].money
for i in range(1, len(list_employees)):
    if maxv < list_employees[i].money:
        maxv=list_employees[i].money
print(maxv)
sumv=list_employees[0].money
for i in range(1,len(list_employees)):
        sumv += list_employees[i].money
print(sumv)
def find_all(condition):
    for item in list_employees:
        if condition(item):
            yield item